package ynu.sxp.demoapp.entity;

import jakarta.persistence.*;
import lombok.Data;
import ynu.sxp.demoapp.common.BaseEntity;

@Data
@Entity
@Table(name = "cart")
public class Cart extends BaseEntity {
    @Column(nullable = false)
    private Integer foodId;

    @Column(nullable = false)
    private Integer businessId;

    @Column(length = 20, nullable = false)
    private String userId;

    @Column(nullable = false)
    private Integer quantity;
}